/* ============================================================
   NOTÍCIAS — page-specific styles
   Shared by noticias.html (listagem) and noticia.html (detalhe).
   Kept separate from infoprest.css so the shared stylesheet stays
   lean. Mobile-first: base rules target small screens, min-width
   media queries layer on refinements for larger viewports.
   ============================================================ */

#grid-noticias {
  scroll-margin-top: 90px;
}

/* ---------- Filtro de categorias ---------- */
.category-filter {
  display: flex;
  gap: 0.6rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}
.category-filter::-webkit-scrollbar {
  display: none;
}
.category-chip {
  flex-shrink: 0;
  padding: 0.55rem 1.1rem;
  border-radius: 999px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--slate);
  font-size: 0.85rem;
  font-weight: 600;
  white-space: nowrap;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.category-chip:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.category-chip.is-active {
  background: var(--blue-900);
  border-color: var(--blue-900);
  color: var(--white);
}

/* ---------- Paginação ---------- */
.pagination {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
}
.pagination-btn {
  padding: 0.65rem 1.4rem;
  border-radius: 999px;
  border: 1.5px solid var(--slate-200);
  background: var(--white);
  color: var(--blue-900);
  font-size: 0.88rem;
  font-weight: 600;
  transition:
    background-color 0.25s var(--ease),
    border-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.pagination-btn:hover:not(:disabled) {
  border-color: var(--blue);
  color: var(--blue);
}
.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.pagination-info {
  font-size: 0.85rem;
  color: var(--slate);
  white-space: nowrap;
}

/* ---------- Página de detalhe ---------- */
.noticia-capa {
  aspect-ratio: 16/9;
  border-radius: var(--radius);
  overflow: hidden;
  background-color: var(--blue-900);
  background-size: cover;
  background-position: center;
}
.noticia-corpo p {
  color: var(--slate);
  font-size: 1rem;
  line-height: 1.8;
}
.noticia-corpo p + p {
  margin-top: 1.25rem;
}

.noticia-relacionada {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding-block: 1rem;
  border-top: 1px solid var(--slate-200);
}
.noticia-relacionada:first-child {
  border-top: none;
  padding-top: 0;
}
.noticia-relacionada img {
  width: 76px;
  height: 76px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}
.noticia-relacionada-cat {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 0.25rem;
}
.noticia-relacionada-titulo {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--blue-900);
  line-height: 1.4;
  transition: color 0.2s ease;
}
.noticia-relacionada:hover .noticia-relacionada-titulo {
  color: var(--blue);
}
